package com.powergisol.gis.dao;


import com.powergisol.gis.entity.DynamicPara;
import com.powergisol.gis.entity.TabLayer;
import com.powergisol.gis.entity.TabSceneLayer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface TabLayerMapper {

    void saveLayer(TabLayer layer);

    void upLayer(TabLayer layer);
    void updateLayerNameLayerByDrawName(TabLayer layer);

    TabLayer getLayerById(@Param("id") Integer id);

    void saveSceneLayer(TabSceneLayer layer);

    void deleteLayerById(Integer id);

    void deleteSceneLayerById(Integer id);

    Integer countServiceNum(@Param("sceneId") Integer sceneId, @Param("serviceId") Integer serviceId);

    List<TabLayer> getByServiceId(@Param("serviceId") Integer serviceId);


    void delByIds(List<Integer> layerIds);

    List<DynamicPara> getDynamic();
}
